package com.work.model.builder;

import java.util.Date;

import com.work.model.Card;

/**
 * The Class CardBuilder.
 *
 * @author "Mihai Roman"
 */
public class CardBuilder extends Builder<Card>{

	/**
	 * With card nb.
	 *
	 * @param cardNB the card nb
	 * @return the card builder
	 */
	private CardBuilder withCardNb(String cardNB) {
		build().setCardNB(cardNB);
		return this;
	}
	
	/**
	 * With creation date.
	 *
	 * @param creationDate the creation date
	 * @return the card builder
	 */
	private CardBuilder withCreationDate(Date creationDate) {
		build().setCreationDate(creationDate);
		return this;
	}
	
	/**
	 * With update date.
	 *
	 * @param updateDate the update date
	 * @return the card builder
	 */
	private CardBuilder withUpdateDate(Date updateDate) {
		build().setUpdateDate(updateDate);
		return this;
	}
	
}
